import service from '@/utils/request'

// @Tags UserNotice
// @Summary 创建用户消息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserNotice true "创建用户消息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /userNotice/createUserNotice [post]
export const createUserNotice = (data) => {
  return service({
    url: '/userNotice/createUserNotice',
    method: 'post',
    data
  })
}

// @Tags UserNotice
// @Summary 删除用户消息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserNotice true "删除用户消息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userNotice/deleteUserNotice [delete]
export const deleteUserNotice = (params) => {
  return service({
    url: '/userNotice/deleteUserNotice',
    method: 'delete',
    params
  })
}

// @Tags UserNotice
// @Summary 批量删除用户消息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除用户消息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userNotice/deleteUserNotice [delete]
export const deleteUserNoticeByIds = (params) => {
  return service({
    url: '/userNotice/deleteUserNoticeByIds',
    method: 'delete',
    params
  })
}

// @Tags UserNotice
// @Summary 更新用户消息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserNotice true "更新用户消息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userNotice/updateUserNotice [put]
export const updateUserNotice = (data) => {
  return service({
    url: '/userNotice/updateUserNotice',
    method: 'put',
    data
  })
}

// @Tags UserNotice
// @Summary 用id查询用户消息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.UserNotice true "用id查询用户消息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userNotice/findUserNotice [get]
export const findUserNotice = (params) => {
  return service({
    url: '/userNotice/findUserNotice',
    method: 'get',
    params
  })
}

// @Tags UserNotice
// @Summary 分页获取用户消息列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取用户消息列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userNotice/getUserNoticeList [get]
export const getUserNoticeList = (params) => {
  return service({
    url: '/userNotice/getUserNoticeList',
    method: 'get',
    params
  })
}
